#ifndef SETTINGMANAGER_H
#define SETTINGMANAGER_H

#include <QSettings>
#include "common_global.h"

class SettingManagerPrivate;

class COMMONSHARED_EXPORT SettingManager : public QObject
{
    Q_OBJECT
private:
    static SettingManager sInst;
public:
    static SettingManager* GetInstance(){
        return &sInst;
    }

    bool LoadSettings(QString path);

signals:

public slots:
private:
    SettingManager();
    ~SettingManager();

    SettingManager(const SettingManager&) = delete;
    SettingManager& operator=(const SettingManager&) = delete;

    SettingManagerPrivate* _p = nullptr;
};

#endif // SETTINGMANAGER_H
